package com.example.demo.design.creational.prototype;

/**
 * @author luowj12
 * @since 2021/5/6 15:19
 */
public class Realizetype implements Cloneable {
    Realizetype() {
        System.out.println("具体原型创建成功！");
    }
    public Object clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功！");
        return (Realizetype) super.clone();
    }
}
